package com.itheima.dao;

import com.itheima.pojo.HotSetmeal;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<HotSetmeal> findHotSetmeal();

    List<Map> getSetmealReport();

    Integer findOrderCountBetweenDate(@Param("start") String start,@Param("end") String end);

    Integer findVisitsCountBetweenDate(@Param("start") String start,@Param("end") String end);

    void updateOutTradeNo(@Param("orderId")Integer orderId, @Param("outTradeNo")String outTradeNo);

    void updateOrderStatus(@Param("out_trade_no")String out_trade_no);
}
